<?php /* Smarty version 2.6.20, created on 2016-07-26 18:33:40
         compiled from ./orders/view.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'orders', './orders/view.php', 6, false),array('modifier', 'date_format', './orders/view.php', 22, false),array('modifier', 'nl2br', './orders/view.php', 26, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/top.php", 'smarty_include_vars' => array('subject' => 'orders')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "orders/top.php", 'smarty_include_vars' => array('subject' => 'orders')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div id="content">
  <form method="post">
  <?php $this->_tag_stack[] = array('orders', array('limit' => 1,'id' => $this->_tpl_vars['segment']['orders_id'],'status' => 'view')); $_block_repeat=true;smarty_block_orders($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
    <table width="100%" border="0" cellpadding="5" cellspacing="0" id="editor">
      <tr>
        <td width="100" class="title">仓库:</td>
        <td class="content"><?php echo $this->_tpl_vars['orders']['shop']; ?>
</td>
      </tr>
      <tr>
        <td class="title">产品名称:</td>
        <td class="content"><?php echo $this->_tpl_vars['orders']['product']; ?>
 <?php echo $this->_tpl_vars['orders']['spec']; ?>
 / <?php echo $this->_tpl_vars['orders']['unit']; ?>
&nbsp;</td>
      </tr>
      <tr>
        <td class="title">数量:</td>
        <td class="content"><?php echo $this->_tpl_vars['orders']['number']+0; ?>
</td>
      </tr>
      <tr>
        <td class="title">出库时间:</td>
        <td class="content"><?php echo ((is_array($_tmp=$this->_tpl_vars['orders']['thedate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
      </tr>
      <tr class="noline">
        <td class="title">备注说明:</td>
        <td class="content"><?php echo ((is_array($_tmp=$this->_tpl_vars['orders']['memo'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
&nbsp;</td>
      </tr>
    </table>
    
    <div class="fr mt10">
    <?php if ($this->_tpl_vars['orders']['timestocked'] == 0): ?><a class="btn" href="<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=orders.php&orders_id=<?php echo $this->_tpl_vars['orders']['id']; ?>
&uri=stockcancel" onclick="return confirm('操作不可恢复, 确定取消出库?')">取消出库？</a><?php endif; ?>
    <a href="javascript:void(0)" class="btn" onclick="location.href='<?php echo $this->_tpl_vars['site_admin']; ?>
m=inventory&s=orders.php&page=<?php echo $_GET['page']; ?>
&status=<?php echo $_GET['status']; ?>
'">返回</a> 
    </div>
    <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_orders($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
  </form>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/bottom.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>